﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataLibs {
    public class htmlData {

        # region Private Fields

        readonly string _htmlText;
        readonly string _url;
        readonly string _time;
        
        static private string _dateFormat = @"yyyy-MM-ddTHH:mm:sszzz";

        #endregion
        
        public htmlData(string htmlText, string url) {
            _time = DateTime.UtcNow.ToString(_dateFormat);
            _htmlText = htmlText;
            _url = url;
            
        }

        static public string SetDateFormat  {
            set { _dateFormat = value;}    
            get { return _dateFormat; }
        }

        public string HTMLText {
            get {
                return _htmlText;
            }
        }

        public string Time {
            get {
                return _time;
            }
        }

        public string URL {
            get { return _url; }
        }

    }
}
